//
//  XFYRobotLook.m
//  MyRobotApp
//
//  Created by 小肥羊 on 15/5/28.
//  Copyright (c) 2015年 小肥羊. All rights reserved.
//

#import "XFYRobotLook.h"

@implementation XFYRobotLook


//- (id)init
//{
//    if (!self) {
//        [[NSBundle mainBundle] loadNibNamed:@"XFYRobotLook" owner:self options:nil];
//        [self addSubview:self.body];
//    }
//    return self;
//}



#pragma mark - 心情表现
- (void)showMood:(MoodType)mood
{
    switch (mood) {
        case MoodNormal:
            [self setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
            break;
        case MoodAccept:
            [self setBackgroundColor:[UIColor orangeColor]];
            break;
        case MoodGrief:
            [self setBackgroundColor:[UIColor grayColor]];
            break;
        case MoodRage:
            [self setBackgroundColor:[UIColor redColor]];
            break;
        default:
            [self setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
            break;
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
